package mybatis.service.impl;

import java.util.List;

import mybatis.dao.FeatureDao;
import mybatis.entity.Feature;
import mybatis.service.FeatureService;
import org.springframework.stereotype.Service;

@Service
public class FeatureServiceImpl implements FeatureService {
	private FeatureDao featureDao;
	@Override
	public List<Feature> getFeatures() {
		List<Feature> list = featureDao.findAll();
		return list;
	}

	@Override
	public int findId(String name) {
		int id = featureDao.findID(name);
		return id;
	}
	
}
